package com.wwl.ailangchain4j.config;

import dev.langchain4j.community.model.dashscope.WanxImageModel;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wwl
 * 日期  2025/10/20 15:20
 * 版本 1.0
 * 描述 :
 */
@Configuration
public class LLMConfig {
    @Value("${aliQwen-api}")
    private String api;
    @Bean
    public WanxImageModel wanxImageModel() {
        return WanxImageModel.builder()
                .apiKey(api)
                .modelName("wan2.5-t2i-preview")
                .build();
    }
}
